<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="google-site-verification" content="yaeorbXgKPwp5BDegBtAJEHYWFEFE-BViWTj74gJPrw" />
<!--  -->
<link href="/css/default.css" type="text/css" rel="stylesheet" />
<!--  -->
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/lang/en.js"></script>
<script type="text/javascript" src="/js/mac/core.js"></script><title>JQuery MagicGrid&nbsp;Document</title>
<meta name="description" content="JQuery MagicTab Document" />
<meta name="keywords" content="JQuery Tab Plugin Document" />
<link href="/javascript/tabs/css/default.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/mac/tabs.js"></script>
<script type="text/javascript">
$(function(){
	$('#docTabs').mac('tabs',{
		items: [{
			code: 'overview',
			title: 'Overview',
			height: 'auto',
			el: $('#overview')
		},{
			code: 'options',
			title: 'Options',
			height: 'auto',
			el: $('#options')
		},{
			code: 'events',
			title: 'Events',
			height: 'auto',
			el: $('#events')
		},{
			code: 'methods',
			title: 'Methods',
			height: 'auto',
			el: $('#methods')
		}]
	}).selectFirst();
});
</script>
</head>
<body>
<style stype="text/css">
#head { height: 60px; background-color: #333; }
#head img { float: left; border: none; }
#head .right { float: right; height: 60px; color: #FFF; text-align: right; }
#head .right a { color: #CCC; font-size: 16px; color: #FFF; }
#head .title {
	color: #F93; float: left; height: 60px; line-height: 60px;
	font-size: 40px; font-family: Impact, 'Comic Sans MS';
}
#head a { color: #F93; text-decoration: underline; }
.hr { height: 12px; background: transparent url(/css/images/nm-b.png) repeat-x; }
</style>
<script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js"
	data-appid="100443511" data-redirecturi="http://www.boarsoft.com" charset="utf-8" data-callback="true"></script>
<script type="text/javascript">
QC.Login({
	btnId: "qqLoginBtn"	//插入按钮的节点id
}); 
</script>
<div id="head">
	<a href="/"><img src="/css/images/logo_s.png" alt="logo of boarsoft.com" /></a>
	<div class="title"><a href="/">boarsoft.com</a></div>
	<div class="right">
		<div>
			<a href="/public/lang.php?l=en">English</a>
			|
			<a href="/public/lang.php?l=cn">简体中文</a>
			|
			<a href="http://www.jquery.com" target="_blank">JQuery</a>
			|
			<a href="http://www.jqueryui.com" target="_blank">JQuery UI</a>
			|
			<a href="http://code.google.com/p/dynatree/" target="_blank">JQuery Dynatree Plugin</a>
			&nbsp;&nbsp;
		</div>
		<div>
			This site has JQuery, Ext/Sencha Plugins, such as: Grid Combobox Tree Tabs&nbsp;&nbsp;<br/>
			Please use IE7+, FireFox, Chrome&nbsp;&nbsp;
		</div>
		<div class="fr" style="background-color: #333; margin: 8px;">
			<span id="qqLoginBtn"></span>
		</div>
	</div>
</div>
<div class="hr"></div><div id="nav">
	<div id="nav_path">
		&nbsp;&nbsp;
		<a href="/">Home</a>
		&gt;
		<a href="/javascript">Javascript</a>
		&gt;
		<a href="/javascript/tabs">MagicTabs</a>
		&gt;
		Document	</div>
	<div id="nav_back">
		<a href="/javascript/tabs">Demo</a>
		|
		<a href="javascript:history.back()">Back</a>
		|
		<a href="/javascript#tabs">Download</a>
		&nbsp;&nbsp;
	</div>
	<div class="clear"></div>
</div>
<div id="docTabs" class="tabs"></div>
<div id="overview">
Simple and Easy JQuery Tab plugin.
<a href="/javascript/tabs">Online Demo</a> and
<a href="/javascript#tabs">Download</a>
<ul>
	<li>Support static, dynamic, remote way to load content.</li>
	<li>Support context menu and 'Close, Close Others, Close All' actions.</li>
	<li>All setting 3 height styles for each tab, include: fit component, fit content and fixed。</li>
	<li>You can use mousewheel to scroll tab headers.</li>
	<li>Easy to customize style.</li>
</ul>
</div>
<div id="options">
	<h3><a href="#">speed</a></h3>
	<p>
		Scroll speed of tabs bar, default = 6.
	</p>
	<h3><a href="#">tabWidth</a></h3>
	<p>
		The width of each tab's head button, default = 90.
	</p>
	<h3><a href="#">tabHeight</a></h3>
	<p>
		The height of each tab's head button, default = 26.
	</p>
	<h3><a href="#">hbarHeight</a></h3>
	<p>
		The mask bar under tab head bar, it is useful for customize style, default = 2.
	</p>
	<h3><a href="#">Tab Config</a></h3>
	<p>
		<ul>
			<li>code: Tab unique name.</li>
			<li>title: Tab title.</li>
			<li>
				height: Tab height style for each of tab. Optional.
				<ul>
					<li>default: Tab height fit the component height.</li>
					<li>auto: Tab height is decided by content of it.</li>
					<li>number: This value will be set to CSS height property directly.</li>
				</ul> 
			</li>
			<li>el: Element or HTML frag which you want to put in. Optional.</li>
			<li>url: Tab content url. Optional.</li>
			<li>autoLoad: Load tab content automatically. Default true.</li>
			<li>closeable: Can close or not. Default false.</li>
			<li>bodyCls: Extra class for body of current tab. Optional.</li>
		</ul>
	<p>
</div>
<div id="events">
	<h3><a href="#">onCloseTab(m, c, a)</a></h3>
	<p>
		It is triggered before a tab be closed, return false to prevent be closed.
		<ul>
			<li>m: This component self.</li>
			<li>c: Name of this closing tab.</li>
			<li>a: Element of this tab's head.</li>
		</ul>
	</p>
	<h3><a href="#">onLoadPage(m, a, b, p)</a></h3>
	<p>
		It is triggered when a page be loaded into a tab.
		<ul>
			<li>m: This component self.</li>
			<li>a: Element of this tab's head. </li>
			<li>b: Element of this tab's body. </li>
			<li>p: Config object of this tab. </li>
		</ul>
	</p>
	<h3><a href="#">onShowTab</a></h3>
	<p>
		It is triggered when a tab be actived.
		<ul>
			<li>m: This component self.</li>
			<li>a: Element of this tab's head. </li>
			<li>b: Element of this tab's body. </li>
			<li>p: Config object of this tab. </li>
		</ul>
	</p>
</div>
<div id="methods">
	<h3><a href="#">closeTab(c, [a])</a></h3>
	<p>
		Close a tab by name.
		<ul>
			<li>c: tab name</li>
			<li>a: tab head button, optional</li>
		</ul>
	</p>
	<h3><a href="#">closeTabs([x])</a></h3>
	<p>
		Close all closable tabs.
		<ul>
			<li>x: Except the tab which name is x, optional</li>
		</ul>
	</p>
	<h3><a href="#">addTab(p, n)</a></h3>
	<p>
		Add a tab.
		<ul>
			<li>p: Config object of new tab.</li>
			<li>n: Position index for insert.</li>
		</ul>
	</p>
	<h3><a href="#">scroll(a)</a></h3>
	<p>
		Scroll tab head bar and select a tab。
		<ul>
			<li>a: Tab head button.</li>
		</ul>
	</p>
	<h3><a href="#">hscroll()</a></h3>
	<p>
		Start horizontal scroll.
	</p>
	<h3><a href="#">select(c)</a></h3>
	<p>
		select a tab.
		<ul>
			<li>c: Tab name</li>
		</ul>
	</p>
	<h3><a href="#">selectFirst()</a></h3>
	<p>
		Select the first tab.
	</p>
</div><iframe src="/javascript/related.php" class="related"></iframe>
<div class="clear" style="height: 8px;"></div>
<div style="text-align: right;">
	Copyright © 2011. All rights reserved&nbsp;&nbsp;蜀ICP备11014774号-1&nbsp;&nbsp;
	QQ: 7213571&nbsp;&nbsp;MSN: pyh_jerry@163.com&nbsp;&nbsp;E-mail: pyh_jerry@163.com&nbsp;&nbsp;
<!--
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
-->
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-24473339-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Ffc0b0282216be3d16055855d8c0e72d9' type='text/javascript'%3E%3C/script%3E"));
</script>
	&nbsp;&nbsp;
</div></body>
</html>
